#!/bin/sh

cd $HOME


git clone --separate-git-dir=$HOME/.dotfiles https://notabug.org/ankul/dotfiles.git tmpdotfiles
rsync --recursive --verbose --exclude '.git' tmpdotfiles/ $HOME/
rm -rf tmpdotfiles

xbindkeys -f "$XDG_CONFIG_HOME"/xbindkeys/config 



git clone --depth=1 https://aur.archlinux.org/yay ~/.local/src/yay
cd ~/.local/src/yay && makepkg && cd
pacman -U --noconfirm ~/.local/src/yay/*pkg.tar.zst
echo -e "\n" | yay -S --nocleanmenu --nodiffmenu libxft-bgra-git ttf-ms-fonts


git clone --depth=1 https://notabug.org/ankul/dwm.git ~/.local/src/dwm
sudo make -C ~/.local/src/dwm install

mkdir /usr/share/xsessions

sudo echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Dwm\nComment=Dynamic Window Manager\nExec=dwm\nIcon=dwm\nType=XSession" >> /usr/share/xsessions/dwm.desktop

git clone --depth=1 https://notabug.org/ankul/dwmblocks.git ~/.local/src/dwmblocks
sudo make -C ~/.local/src/dwmblocks install

git clone --depth=1 https://github.com/Bugswriter/st.git ~/.local/src/st
sudo make -C ~/.local/src/st install

git clone --depth=1 https://git.suckless.org/dmenu ~/.local/src/dmenu
sudo make -C ~/.local/src/dmenu install

mkdir pix
git clone --depth=1 https://notabug.org/ankul/wall.git ~/pix/wall
